diff options
| author | Adam Soltys <[email protected]> | 2023-01-13 23:49:59 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-13 23:49:59 -0800 |
| commit | 7de4b0d2cd330674dcd02d2b007c1477fd48caaa (patch) | |
| tree | c8721da657a75160c55aaf6bc7cc573669cb52dd /src/routes/(app)/[username]/receive | |
| parent | 75e1e4e6aa2dbc7d400df1860758db28bf44b7a3 (diff) | |
| download | coinos-ui-7de4b0d2cd330674dcd02d2b007c1477fd48caaa.tar.gz coinos-ui-7de4b0d2cd330674dcd02d2b007c1477fd48caaa.zip | |
payments migration
Diffstat (limited to 'src/routes/(app)/[username]/receive')
| -rw-r--r-- | src/routes/(app)/[username]/receive/[...param]/+page.svelte | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/routes/(app)/[username]/receive/[...param]/+page.svelte b/src/routes/(app)/[username]/receive/[...param]/+page.svelte index 4559f00c..18d6b21e 100644 --- a/src/routes/(app)/[username]/receive/[...param]/+page.svelte +++ b/src/routes/(app)/[username]/receive/[...param]/+page.svelte @@ -3,7 +3,7 @@ import { t } from '$lib/translations'; import { enhance } from '$app/forms'; import { page } from '$app/stores'; - import { invoices, requestRedirect } from '$lib/store'; + import { requestRedirect } from '$lib/store'; import { browser } from '$app/environment'; import { goto } from '$app/navigation'; @@ -19,9 +19,6 @@ let { currency, username } = data.subject; let { user } = data; - - $: paid = browser && form && Object.values($invoices).find((inv) => inv.amount === form.amount); - $: paid && goto(`/invoice/${paid.id}/paid`); </script> <form method="POST" class="flex justify-center items-center mt-24 mb-3 px-3" use:enhance> @@ -43,7 +40,7 @@ class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold opacity-100 hover:opacity-80" > - {amount ? $t('transactions.next') : $t('transactions.sendersChoice')} + {amount ? $t('payments.next') : $t('payments.sendersChoice')} </button> </div> </form> |
